package com.tanhua.util;

import com.tanhua.domain.db.User;

public class UserHolder {
    private static ThreadLocal<User> tl = new ThreadLocal<>();


    public static void setUser(User user){
        tl.set(user);
    }

    public static User getUser(){
      return tl.get();
    }

    public static void removeUser(){
        tl.remove();
    }

}
